package bravo.xc.com.xc_bravo_android.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.SimpleAdapter;
import android.widget.TextView;

import java.util.List;
import java.util.Map;

import bravo.xc.com.xc_bravo_android.R;
import bravo.xc.com.xc_bravo_android.beans.MessageResultBeans;

/**
 * Created by HDL on 2017/11/7.
 */

public class spinnerAdapter extends ArrayAdapter {


    public spinnerAdapter(@NonNull Context context, int resource, @NonNull List<String> objects) {
        super(context, resource, objects);
    }
    @Override
    public int getCount() {
        // don't display last item. It is used as hint.
        int count = super.getCount();
        return count;
        //> 0 ? count - 1 : count;
    }
}
